#ifndef STATICMEMORY_H
#define STATICMEMORY_H
#include <MutexLock.h>
#include <compile.h>
#include <OSProc.h>
#define listnode2  listnode<2>

namespace StaticMemory
{
  struct STATIC_MEMORY_INFO
  {
    //  _ptlong state;
    _mlock locker;
    _ptlong* phyMem;
    listnode2* pro_addr;
  };
  typedef struct STATIC_MEMORY_INFO stminfo;
}


  inline StaticMemory::stminfo* StaticMemorize(StaticMemory::stminfo* info,_pcb* pro,_ptlong* vAddr);
  StaticMemory::stminfo* StaticMemorize(_pcb* proA,_ptlong* vAddrA,_pcb* proB, _ptlong* vAddrB);
  int inStaticMemorize(_pcb* pro,_ptlong* vAddr);
  int inStaticMemorize(_pcb* pro,_ptlong* vAddr);

#endif
